<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAgentSettleAccountsRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('agent_settle_accounts_records', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('agent_user_id')->default(0)->comment('代理人');
            $table->decimal('amount')->default(0)->comment('提现金额');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('agent_settle_accounts_records');
    }
}
